package exteditapp;

/**
 * Interface to controller of application module (commonly used by views)
 * @author Arturas Smorgun, arturas@smorgun.lt
 */
public abstract class IController  {

	/**
	 * Main system module
	 */
	protected IModuleApplet module;
	
	/**
	 * Default constructor
	 * @param mymodule module, which we will control with this controller
	 */
	public IController(IModuleApplet mymodule){
		this.setModule(mymodule);
	}

	/**
	 * Return module
	 * @return IModule module, which we are able to control using this controller
	 */	
	public IModuleApplet getModule(){
		return this.module;
	}	

	/**
	 * Set the value of module.
	 * @param mymodule is module which we will control with this controller
	 */
	public void setModule(IModuleApplet mymodule){
		this.module = mymodule;
	}

}
